package components.map.info
{
	import capricornus.components.window.FrameWindow;
	import capricornus.components.window.WindowAlignType;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.InteractiveObject;
	import flash.text.TextField;
	
	internal class MapInfoPopupView extends FrameWindow
	{
		public var txtName:TextField;
		public var txtWidth:TextField;
		public var txtHeight:TextField;
		public var txtGridWidth:TextField;
		public var txtGridHeight:TextField;
		public var txtHCount:TextField;
		public var txtVCount:TextField;
		
		public var btnOK:InteractiveObject;
		
		public function MapInfoPopupView(owner:DisplayObjectContainer)
		{
			super(owner);
			init();
		}
		
		private function init():void
		{
			panel = new MapInfoPanel();
			
			txtName = panel.getChildByName("txtname") as TextField;
			txtWidth = panel.getChildByName("txtwidth") as TextField;
			txtHeight = panel.getChildByName("txtheight") as TextField;
			txtGridWidth = panel.getChildByName("txtgridwidth") as TextField;
			txtGridHeight = panel.getChildByName("txtgridheight") as TextField;
			txtHCount = panel.getChildByName("txthgridcount") as TextField;
			txtVCount = panel.getChildByName("txtvgridcount") as TextField;
			
			btnOK = panel.getChildByName("btnok") as InteractiveObject;
			
			setAlignType( WindowAlignType.SCALE, WindowAlignType.SCALE );
		}
	}
}